package com.golxen.framework.log;


import com.golxen.framework.manager.ManagerPlugin;
import com.golxen.framework.timers.TimerPlugin;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;

public class LogPlugin {

	static LogPlugin instance = null;

	public static void start() {
		if (instance != null) {
			return;
		}

		instance = new LogPlugin();

		ManagerPlugin.registMgr(LogMgr.class);

		TimerPlugin.registTimer(LogSaveTask.class, 60, 60, TimeUnit.SECONDS);

	}

	public static boolean active() {
		return instance != null;
	}


}
